package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "cn_omc_order")
public class OmcOrder extends BaseEntity {

    /**
     * 下单人
     */
    @Column(name = "user_id_put")
    private Long userIdPut;

    /**
     * 下单人 - 姓名
     */
    @Column(name = "user_name_put")
    private String userNamePut;

    /**
     * 服务Id
     */
    @Column(name = "service_id")
    private Long serviceId;

    /**
     * 老人Id
     */
    @Column(name = "oldman_id")
    private Long oldmanId;

    /**
     * 老人姓名
     */
    @Column(name = "oldman_name")
    private String oldmanName;

    /**
     * 老人地址
     */
    @Column(name = "old_address")
    private String oldAddress;

    /**
     * 老人电话
     */
    @Column(name = "old_phone")
    private String oldPhone;

    /**
     * 服务时间
     */
    @Column(name = "service_time")
    private Date serviceTime;

    /**
     * 服务地址
     */
    @Column(name = "service_address")
    private String serviceAddress;

    /**
     * 接单人
     */
    @Column(name = "user_id_get")
    private Long userIdGet;

    /**
     * 接单人 - 姓名
     */
    @Column(name = "user_name_get")
    private String userNameGet;

    /**
     * 订单状态
     */
    private Integer stat;

    /**
     * 服务时长
     */
    @Column(name = "service_duration")
    private String serviceDuration;

    /**
     * 订单积分
     */
    private Integer integral;

    /**
     * 流程实例Id
     */
    @Column(name = "process_instance_id")
    private String processInstanceId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 组织Id
     */
    @Column(name = "group_id")
    private Long groupId;
}